/**
 * Created with IntelliJ IDEA.
 * User: weixintao
 * Date: 15-4-2
 * Time: 下午6:10
 * To change this template use File | Settings | File Templates.
 */
package Hxw3DEngine.asset.parsers.bson.vo {

import flash.utils.ByteArray;

public class AnimateMeshVO {
    public var name:String;
    public var flags:uint;
    public var material:uint;
    public var trangle_type:uint;
    public var indices:uint;
    public var vertices:uint;
    public var frames:uint;
    public var texture_width:uint;
    public var texture_height:uint;

    public var tex_coords:ByteArray;
    public var animate_vertices:ByteArray;
    public var indices_stream:ByteArray;
    public var animate_frames:Vector.<AnimateFrameVO>;
    public var bound:ByteArray;

    public function AnimateMeshVO(object:Object) {
        name = object.name;
        flags = object.flags;
        material = object.material;
        trangle_type = object.trangle_type;
        indices = object.indices;
        vertices = object.vertices;
        frames = object.frames;
        texture_width = object.texture_width;
        texture_height = object.texture_height;

        tex_coords = object.tex_coords.data;
        animate_vertices = object.animate_vertices.data;
        indices_stream = object.indices_stream.data;
        animate_frames = new Vector.<AnimateFrameVO>();
        for each(var o:Object in object.animate_frames){
            var f:AnimateFrameVO = new AnimateFrameVO(o);
            animate_frames.push(f);
        }
        bound = object.bound.data;
    }
}
}
